//
//  CXTestCollectionViewCell.swift
//  CXSwiftDemo
//
//  Created by 潮汐 on 2023/12/9.
//
//自定义UICollectionViewCell  
import UIKit

class CXTestCollectionViewCell: UICollectionViewCell {
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        //创建UI
        createUI()
    }
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func createUI(){
        
        self.backgroundColor = UIColor(red:  CGFloat(arc4random()%256)/256.0, green:  CGFloat(arc4random()%256)/256.0, blue:  CGFloat(arc4random()%256)/256.0, alpha: 1)
    }
}
